
import View=laya.ui.View;
import Dialog=laya.ui.Dialog;
import EffectAnimation=laya.display.EffectAnimation;

module ui.effect {
    export class scale1UI extends EffectAnimation {
		public ani1:Laya.FrameAnimation;

        public static  uiView:any ={"type":"View","props":{"y":0,"x":0,"anchorY":0,"anchorX":0},"child":[{"type":"Sprite","props":{"y":0,"x":0,"width":84,"scaleY":1,"scaleX":1,"pivotY":42,"pivotX":42,"height":84},"compId":3,"child":[{"type":"Texture","props":{"skin":"fish/l_1_1.png"}}]}],"animations":[{"nodes":[{"target":3,"keyframes":{"scaleY":[{"value":1,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleY","index":0},{"value":0.2,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleY","index":3},{"value":1,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleY","index":6}],"scaleX":[{"value":1,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleX","index":0},{"value":0.2,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleX","index":3},{"value":1,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleX","index":6}]}}],"name":"ani1","id":1,"frameRate":24,"action":0}]};
        constructor(){ super();this.effectData =ui.effect.scale1UI.uiView;}
    }
}

module ui.effect {
    export class scale2UI extends EffectAnimation {
		public ani2:Laya.FrameAnimation;

        public static  uiView:any ={"type":"View","props":{"y":0,"x":0,"anchorY":0,"anchorX":0},"child":[{"type":"Sprite","props":{"y":0,"x":0,"width":84,"pivotY":42,"pivotX":42,"height":84},"compId":3,"child":[{"type":"Texture","props":{"skin":"fish/l_1_1.png"}}]}],"animations":[{"nodes":[{"target":3,"keyframes":{"x":[{"value":0,"tweenMethod":"linearNone","tween":true,"target":3,"key":"x","index":0}],"scaleY":[{"value":0.2,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleY","index":0},{"value":1,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleY","index":3}],"scaleX":[{"value":0.2,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleX","index":0},{"value":1,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleX","index":3}]}}],"name":"ani2","id":2,"frameRate":24,"action":0}]};
        constructor(){ super();this.effectData =ui.effect.scale2UI.uiView;}
    }
}

module ui.main {
    export class mainUI extends View {
		public ani1:Laya.FrameAnimation;
		public bubble1:Laya.FrameAnimation;
		public bubble2:Laya.FrameAnimation;
		public fish1:Laya.FrameAnimation;
		public move:Laya.FrameAnimation;
		public gameBg:Laya.Image;
		public scoreBg:Laya.Image;
		public score:Laya.Label;
		public hook:Laya.Image;
		public bubbleBg:View;
		public seaArea:View;
		public outlet1:com.tangs.ClickLabel;
		public splashBg:com.tangs.MyUI;
		public start:Laya.Button;
		public startEffect:ui.effect.scale2UI;
		public fish222:Laya.Sprite;

        public static  uiView:any ={"type":"View","props":{"width":640,"height":1136},"child":[{"type":"Image","props":{"y":0,"x":0,"var":"gameBg","skin":"fish/background.png"},"child":[{"type":"Image","props":{"y":84,"x":363,"var":"scoreBg","skin":"fish/score_board.png"},"child":[{"type":"Label","props":{"y":9,"x":27,"var":"score","text":"分数:0","fontSize":40,"color":"#ffffff","align":"left"}}]},{"type":"Image","props":{"y":-980,"x":276,"var":"hook","skin":"fish/hook.png"}},{"type":"View","props":{"y":200,"width":640,"var":"bubbleBg","height":760},"child":[{"type":"Image","props":{"y":692,"x":78,"width":17,"skin":"fish/bubble.png","height":17},"compId":17},{"type":"Image","props":{"y":702,"x":88,"width":17,"skin":"fish/bubble.png","height":17},"compId":18}]},{"type":"View","props":{"y":200,"x":0,"width":640,"var":"seaArea","height":760},"child":[{"type":"Image","props":{"y":380,"x":655,"skin":"fish/l_1_1.png"},"compId":21},{"type":"Clip","props":{"y":284,"x":480,"skin":"fish/l_2.png","interval":150,"index":0,"clipY":1,"clipX":4,"clipWidth":100,"clipHeight":80,"autoPlay":true}}]},{"type":"Label","props":{"y":919,"x":234,"var":"outlet1","text":"出杆","strokeColors":"#0000ff,#ff0000,#00ffff,#ffffff","strokeColor":"#0000ff","stroke":8,"labelColors":"#ff0000,#00ff00,#0000ff,#000000","fontSize":80,"color":"#ff0000","runtime":"com.tangs.ClickLabel"}}]},{"type":"Image","props":{"y":0,"x":0,"var":"splashBg","skin":"fish/start_bg.jpg","d":true,"b":544,"a":22,"runtime":"com.tangs.MyUI"},"child":[{"type":"Button","props":{"y":696.6666666666666,"x":320,"var":"start","stateNum":1,"skin":"fish/start_btn.png","anchorY":0.5,"anchorX":0.5},"compId":10,"child":[{"type":"Script","props":{"playEvent":"mousedown","runtime":"ui.effect.scale1UI"}},{"type":"Script","props":{"var":"startEffect","playEvent":"mouseup","runtime":"ui.effect.scale2UI"}},{"type":"Script","props":{"playEvent":"mouseout","runtime":"ui.effect.scale2UI"}}]},{"type":"Sprite","props":{"y":653,"x":509,"var":"fish222"},"child":[{"type":"Texture","props":{"skin":"fish/l_1_1.png"}}]}]},{"type":"Particle2D","props":{"y":985,"x":268,"url":"anim/p1.part"}}],"animations":[{"nodes":[{"target":10,"keyframes":{"y":[{"value":760,"tweenMethod":"linearNone","tween":true,"target":10,"key":"y","index":0},{"value":660,"tweenMethod":"linearNone","tween":true,"target":10,"key":"y","index":30},{"value":760,"tweenMethod":"linearNone","tween":true,"target":10,"key":"y","index":60}],"x":[{"value":320,"tweenMethod":"linearNone","tween":true,"target":10,"key":"x","index":0}],"click":[]}}],"name":"ani1","id":1,"frameRate":24,"action":0},{"nodes":[{"target":17,"keyframes":{"y":[{"value":692,"tweenMethod":"linearNone","tween":true,"target":17,"key":"y","index":0},{"value":0,"tweenMethod":"linearNone","tween":true,"target":17,"key":"y","index":30},{"value":1,"tweenMethod":"linearNone","tween":true,"target":17,"key":"y","index":45}],"visible":[{"value":true,"tweenMethod":"linearNone","tween":false,"target":17,"key":"visible","index":0},{"value":false,"tweenMethod":"linearNone","tween":false,"target":17,"key":"visible","index":31}]}}],"name":"bubble1","id":2,"frameRate":24,"action":2},{"nodes":[{"target":18,"keyframes":{"y":[{"value":702,"tweenMethod":"linearNone","tween":true,"target":18,"key":"y","index":0},{"value":0,"tweenMethod":"linearNone","tween":true,"target":18,"key":"y","index":72}],"x":[{"value":128,"tweenMethod":"linearNone","tween":true,"target":18,"key":"x","index":0}],"visible":[{"value":true,"tweenMethod":"linearNone","tween":false,"target":18,"key":"visible","index":0},{"value":false,"tweenMethod":"linearNone","tween":false,"target":18,"key":"visible","index":73},{"value":false,"tweenMethod":"linearNone","tween":false,"target":18,"key":"visible","index":90}],"scaleY":[{"value":1.5,"tweenMethod":"linearNone","tween":true,"target":18,"key":"scaleY","index":0}],"scaleX":[{"value":1.5,"tweenMethod":"linearNone","tween":true,"target":18,"key":"scaleX","index":0}]}}],"name":"bubble2","id":3,"frameRate":24,"action":2},{"nodes":[{"target":21,"keyframes":{"skin":[{"value":"fish/l_1_1.png","tweenMethod":"linearNone","tween":false,"target":21,"key":"skin","index":0},{"value":"fish/l_1_2.png","tweenMethod":"linearNone","tween":false,"target":21,"key":"skin","index":2},{"value":"fish/l_1_3.png","tweenMethod":"linearNone","tween":false,"target":21,"key":"skin","index":4},{"value":"fish/l_1_4.png","tweenMethod":"linearNone","tween":false,"target":21,"key":"skin","index":6},{"value":"fish/l_1_4.png","tweenMethod":"linearNone","tween":false,"target":21,"key":"skin","index":8}]}}],"name":"fish1","id":4,"frameRate":24,"action":2},{"nodes":[{"target":21,"keyframes":{"x":[{"value":655,"tweenMethod":"linearNone","tween":true,"target":21,"key":"x","index":0},{"value":-86,"tweenMethod":"linearNone","tween":true,"target":21,"key":"x","index":240}]}}],"name":"move","id":5,"frameRate":24,"action":2}]};
        constructor(){ super()}
        createChildren():void {
        			View.regComponent("com.tangs.ClickLabel",com.tangs.ClickLabel);
			View.regComponent("com.tangs.MyUI",com.tangs.MyUI);
			View.regComponent("ui.effect.scale1UI",ui.effect.scale1UI);
			View.regComponent("ui.effect.scale2UI",ui.effect.scale2UI);
			View.regComponent("Particle2D",laya.particle.Particle2D);

            super.createChildren();
            this.createView(ui.main.mainUI.uiView);

        }

    }
}

module ui.test {
    export class TestPageUI extends View {
		public btn:Laya.Button;
		public clip:Laya.Clip;
		public combobox:Laya.ComboBox;
		public tab:Laya.Tab;
		public list:Laya.List;
		public btn2:Laya.Button;
		public check:Laya.CheckBox;
		public radio:Laya.RadioGroup;
		public box:Laya.Box;

        public static  uiView:any ={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp/clip_num.png","clipX":10,"var":"clip"},"type":"Clip"},{"props":{"x":220,"y":143,"skin":"comp/combobox.png","labels":"select1,select2,selecte3","selectedIndex":1,"sizeGrid":"4,20,4,4","width":200,"height":23,"var":"combobox"},"type":"ComboBox"},{"props":{"x":220,"y":96,"skin":"comp/tab.png","labels":"tab1,tab2,tab3","var":"tab"},"type":"Tab"},{"props":{"x":259,"y":223,"skin":"comp/vscroll.png","height":150},"type":"VScrollBar"},{"props":{"x":224,"y":223,"skin":"comp/vslider.png","height":150},"type":"VSlider"},{"type":"List","child":[{"type":"Box","child":[{"props":{"skin":"comp/label.png","text":"this is a list","x":26,"y":5,"width":78,"height":20,"fontSize":14,"name":"label"},"type":"Label"},{"props":{"x":0,"y":2,"skin":"comp/clip_num.png","clipX":10,"name":"clip"},"type":"Clip"}],"props":{"name":"render","x":0,"y":0,"width":112,"height":30}}],"props":{"x":452,"y":68,"width":128,"height":299,"vScrollBarSkin":"comp/vscroll.png","repeatX":1,"var":"list"}},{"props":{"x":563,"y":4,"skin":"comp/btn_close.png","name":"close"},"type":"Button"},{"props":{"x":41,"y":112,"skin":"comp/button.png","label":"点我赋值","width":150,"height":66,"sizeGrid":"4,4,4,4","labelSize":30,"labelBold":true,"var":"btn2"},"type":"Button"},{"props":{"x":220,"y":188,"skin":"comp/checkbox.png","label":"checkBox1","var":"check"},"type":"CheckBox"},{"props":{"x":220,"y":61,"skin":"comp/radiogroup.png","labels":"radio1,radio2,radio3","var":"radio"},"type":"RadioGroup"},{"type":"Panel","child":[{"props":{"skin":"comp/image.png"},"type":"Image"}],"props":{"x":299,"y":223,"width":127,"height":150,"vScrollBarSkin":"comp/vscroll.png"}},{"props":{"x":326,"y":188,"skin":"comp/checkbox.png","label":"checkBox2","labelColors":"#ff0000"},"type":"CheckBox"},{"type":"Box","child":[{"props":{"y":70,"skin":"comp/progress.png","width":150,"height":14,"sizeGrid":"4,4,4,4","name":"progress"},"type":"ProgressBar"},{"props":{"y":103,"skin":"comp/label.png","text":"This is a Label","width":137,"height":26,"fontSize":20,"name":"label"},"type":"Label"},{"props":{"y":148,"skin":"comp/textinput.png","text":"textinput","width":150,"name":"input"},"type":"TextInput"},{"props":{"skin":"comp/hslider.png","width":150,"name":"slider"},"type":"HSlider"},{"props":{"y":34,"skin":"comp/hscroll.png","width":150,"name":"scroll"},"type":"HScrollBar"}],"props":{"x":41,"y":197,"var":"box"}}],"props":{"width":600,"height":400}};
        constructor(){ super()}
        createChildren():void {
        
            super.createChildren();
            this.createView(ui.test.TestPageUI.uiView);

        }

    }
}
